package com.gpvip.study.abstractfactory;

/**
 * @Author：xuchy
 * @Date：2020/2/24
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        //国内银联支付
        IPayFactory payFactory = new InnerSideFactory();
        IUnionPay unionPay = payFactory.createUnionPay();
        unionPay.doPay();
        //境外银联支付
        payFactory = new OutSideFactory();
        unionPay = payFactory.createUnionPay();
        unionPay.doPay();
    }
}
